page {
  /* 颜色变量 */
  --text-primary: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --text-placeholder: #c0c4cc;
  --theme-color: #19be6b;
  --theme-color-dark: #18b566;
  --danger-color: #f56c6c;
  --warning-color: #f9ae3d;
  --bg-color: #f7f8fa;
  --white: #ffffff;
  --border-color: #ebedf0;

  /* 字体大小变量 */
  --font-size-xl: 32rpx;
  /* 为总价等关键信息预留一个更大的尺寸 */
  --font-size-lg: 28rpx;
  --font-size-md: 26rpx;
  --font-size-sm: 24rpx;
  --font-size-xs: 22rpx;
}

.page-container {
  padding-bottom: 180rpx;
  /* 为底部操作栏留出空间 */
}

.items-list {
  padding-top: 24rpx;

  .item-wrapper {
    animation: slide-up 0.4s ease-out forwards;
  }

  .empty-tip {
    text-align: center;
    color: var(--text-secondary);
    padding: 80rpx 0;
    font-size: var(--font-size-sm);
  }
}

.actions-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20rpx;
  margin: 20rpx 10rpx;

  .add-item-btn {
    display: flex;
    align-items: center;
    flex: 2;
    height: 90rpx;
    justify-content: center;
    border-radius: 10rpx;
    color: var(--theme-color);
    font-size: var(--font-size-md);
    background-color: var(--theme-color);

    van-icon {
      margin-right: 8rpx;
      font-size: 32rpx !important;
    }
  }

  .total-summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1;
    height: 90rpx;

    .summary-label {
      color: var(--text-regular);
      font-size: var(--font-size-lg);
      font-weight: bold;
    }

    .summary-value {
      color: var(--danger-color); // 使用危险色突出总价
      font-size: var(--font-size-xl);
      font-weight: bold;
    }
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.form-section {
  .form-card {
    background-color: var(--white);
    border-radius: 16rpx;
    margin: 0 30rpx 24rpx;
    padding: 30rpx;
  }


}

.form-card {
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24rpx;

    .title {
      color: var(--text-primary);
      font-size: var(--font-size-lg);
      font-weight: 500;
    }

    .required {
      color: var(--danger-color);
      font-size: var(--font-size-sm);
    }

    .optional {
      color: var(--text-secondary);
      font-size: var(--font-size-sm);
    }
  }
}

.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20rpx;

  .option {
    display: flex;
    align-items: center;
    padding: 12rpx 24rpx;
    border: 1rpx solid var(--border-color);
    border-radius: 30rpx;
    font-size: var(--font-size-sm);
    color: var(--text-regular);
    transition: all 0.2s;

    .radio {
      display: none; // 隐藏原生 radio
    }

    &.active {
      background-color: var(--theme-color);
      color: #fff;
      border-color: var(--theme-color);
    }
  }
}

.uploader-area {
  .photo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16rpx;
  }

  .photo-item,
  .uploader-btn {
    width: 160rpx;
    height: 160rpx;
    border-radius: 8rpx;
  }

  .photo-item {
    position: relative;

    .photo-img {
      width: 100%;
      height: 100%;
      border-radius: 8rpx;
    }

    .remove-photo-btn {
      position: absolute;
      top: -12rpx;
      right: -12rpx;
      width: 36rpx;
      height: 36rpx;
      background-color: var(--danger-color);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .uploader-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160rpx;
    height: 160rpx;
    border-radius: 8rpx;
    background-color: #f7f8fa;
    border: 1rpx dashed var(--border-color);
  }
}

.remarks-input {
  width: 100%;
  height: 160rpx;
  background-color: #f7f8fa;
  padding: 20rpx;
  box-sizing: border-box;
  border-radius: 8rpx;
  font-size: var(--font-size-md);
  color: var(--text-primary);
}
// 参与人员列表
.participant-list {
  display: flex;
  gap: 24rpx;

  .participant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16rpx;
    border: 2rpx solid transparent;
    border-radius: 12rpx;
    position: relative;
    transition: all 0.2s ease-in-out;

    .avatar {
      width: 90rpx;
      height: 90rpx;
      border-radius: 50%;
      margin-bottom: 12rpx;
    }

    .name {
      font-size: var(--font-size-sm);
      color: var(--text-regular);
    }

    &.active {
      border-color: var(--theme-color);

      .name {
        color: var(--theme-color);
      }
    }

    .check-icon {
      position: absolute;
      top: 0;
      right: 0;
      width: 32rpx;
      height: 32rpx;
      background-color: var(--theme-color);
      border-radius: 0 12rpx 0 12rpx;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
.input-placeholder {
  color: var(--text-placeholder);
}


.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 20rpx 30rpx;
  padding-bottom: calc(20rpx + constant(safe-area-inset-bottom));
  padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);

  .submit-btn {

    // vant button 自定义样式
    .van-button {
      height: 90rpx !important;
      font-size: var(--font-size-lg) !important;
    }
  }
}